import request from '@/utils/request'

export function getByParam(params) {
  return request({
    url: '/serviceManagement/maintenanceCleaningStaffInfo/getByParam',
    method: 'get',
    params
  })
}

export function update(data) {
  return request({
    url: '/serviceManagement/maintenanceCleaningStaffInfo/update',
    method: 'post',
    data
  })
}

export function add(data) {
  return request({
    url: '/serviceManagement/maintenanceCleaningStaffInfo/add',
    method: 'post',
    data
  })
}

export function deleteById(staffId) {
  return request({
      url: '/serviceManagement/maintenanceCleaningStaffInfo/deleteById',
      method: 'post',
      headers: {
          'Content-Type': 'application/json'
      },
      data: staffId
  })
}

export function deleteBatch(data) {
  return request({
      url: '/serviceManagement/maintenanceCleaningStaffInfo/deleteBatch',
      method: 'post',
      data
  })
}